package me.zhengjie.modules.rest.enterprise;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.RequiredArgsConstructor;
import me.zhengjie.annotation.AnonymousAccess;
import me.zhengjie.modules.domain.enterprise.EnterprisePersonnelInformation;
import me.zhengjie.modules.service.EnterprisePerService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Api(tags ="企业员工信息API")
@RestController
@RequestMapping("/entPer")
@RequiredArgsConstructor
public class EnterprisePerController {

    private final EnterprisePerService enterprisePerService;

    @AnonymousAccess
    @ApiOperation("根据企业名称查询核心员工")
    @GetMapping("/queryEnterprisePerByName")
    public List<EnterprisePersonnelInformation> queryEnterprisePerByName(String name){
        return enterprisePerService.queryEnterprisePerByName(name);
    }

}
